<template>
    <div  v-show="show" style="margin-top:50px;">
        <van-tabbar v-model="active">
            <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
            <van-tabbar-item icon="search" to="/order">订单</van-tabbar-item>
            <van-tabbar-item icon="setting-o" to="/mine">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data() {
        return {
            active: 0,
        };
    },

    computed:{
        show(){
            return this.$store.state.showTabbar
        }
    }

};
</script>